﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Sdepci.InfoCode.Web.Main" %>
<%@ Register src="Includes/VerifyLoginState.ascx" tagname="VerifyLoginState" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>快捷编码页面</title>
    <link rel="stylesheet" type="text/css" href="Css/Style.css" />
    <link rel="stylesheet" type="text/css" href="Css/Backstage.css" />
    <script type="text/javascript" src="Javascript/MyGrid.js"></script>
    <script type="text/javascript" src="Interface/Invoking.js"></script>
    <script language="javascript" type="text/javascript">
        function Create(ruleGuid) {
            var infocode = InfoCode_CreateInfoCode(ruleGuid, document.getElementById("hidUserId").value);
            if (infocode != undefined && infocode != "") {
                document.getElementById("txt_" + ruleGuid).value = infocode;
            }
        }

        function Save() {
            var result = InfoCode_SaveInfoCode();
            if (result) {
                alert("保存成功！");
            }
            else {
                alert("保存失败！(InfoCode_SaveErrorCode=" + InfoCode_SaveErrorCode + ";InfoCode_SaveErrorMessage=" + InfoCode_SaveErrorMessage + ")");
            }
        }
    </script>
</head>
<body style="background-color: #ffffff;">
    <form id="form1" runat="server">
    <uc1:VerifyLoginState ID="VerifyLoginState1" runat="server" />
    <div id="container">
        <div id="listregion">
            <asp:HiddenField ID="hidUserId" runat="server" />
            <table style="width: 100%;" id="tblCheck">
                <caption>快捷编码页面</caption>
                <thead>
                    <tr>
                        <td style="width: 35%;">编码类型</td>
                        <td style="width: 65%;">创建及保存编码</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>公文类文件编码</td>
                        <td>
                            <input type="text" size="45" style="text-align:center;" id="txt_07143fa6-b9d6-40c6-b19f-8a0d57c920de" />
                            <input type="button" value="创建编码" onclick="javascript:Create('07143fa6-b9d6-40c6-b19f-8a0d57c920de');" />
                            <input type="button" value="保存编码" onclick="javascript:Save();" />
                        </td>
                    </tr>
                    <tr>
                        <td>综合管理文件</td>
                        <td>
                            <input type="text" size="45" style="text-align:center;" id="txt_cb19b755-2e83-45e2-9c5a-e9e248786a8b" />
                            <input type="button" value="创建编码" onclick="javascript:Create('cb19b755-2e83-45e2-9c5a-e9e248786a8b');" />
                            <input type="button" value="保存编码" onclick="javascript:Save();" />
                        </td>
                    </tr>
                    <tr>
                        <td>资质、荣誉及实物编码</td>
                        <td>
                            <input type="text" size="45" style="text-align:center;" id="txt_59dedf4c-6596-4b3c-977c-4e8d24cbe05e" />
                            <input type="button" value="创建编码" onclick="javascript:Create('59dedf4c-6596-4b3c-977c-4e8d24cbe05e');" />
                            <input type="button" value="保存编码" onclick="javascript:Save();" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    </form>
</body>
</html>